<template>
  <div id="app">
    <div class="header">
      <div class="container">
        <div class="logo">
          <img src="./assets/logo.png">
        </div>
        <h1>{{ title }}</h1>
      </div>
    </div>
    <div class="main">
      <div class="container">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>


<script>
  export default {
    name: 'app',
    data () {
      return {
        title: '巍峨的山疯畜立在我们脚下，欢迎来到 Vue 世界。。。'
      }
    }
  }
</script>


<style>
  html {
    height: 100%;
    background-color: aliceblue;
    color: #2c3e50;
  }
  body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .header {
    height: 50px;
    background-color: #242424;
    color: #e5e5e5;
  }
  .container {
    display: flex;
    margin: 0 15px;
  }
  .header h1 {
    margin: 0;
    font-size: 1.5em;
    line-height: 50px;
  }
  .logo {
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .logo img {
    width: 32px;
    height: 32px;
  }
  .main {
    flex: 1;
  }
  .main > div {
    height: 100%;
  }
  @media (min-width: 1200px) {
    .container {
      margin: 0 auto;
      width: 1200px;
    }
  }
</style>
